#!/bin/bash

jar=/data/ssl/update-cert.jar
config=/data/ssl/update-cert.conf
log=/data/ssl/update-cert.log

echo date:`date '+%Y-%m-%d %H:%M:%S'` > $log


if [ ! -z "$1" ]
then
        modeOption="-m $1"
fi
java=/data/java/jdk-11.0.20/bin/java
$java -jar $jar -f $config $modeOption >> $log
echo end date:`date '+%Y-%m-%d %H:%M:%S'`
echo "exit code:$?" >> $log

